<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>MySQLi_Driver类</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mysqli-result.num-rows.html">« mysqli_result::$num_rows</a></li>
      <li style="float: right;"><a href="mysqli-driver.embedded-server-end.html">mysqli_driver::embedded_server_end »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mysqli.html">Mysqli</a></li>
    <li>MySQLi_Driver类</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.mysqli-driver" class="reference">
 <h1 class="title">MySQLi_Driver类</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5, PHP 7, PHP 8)</p>
 

  <div class="section" id="mysqli-driver.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    MySQLi 驱动.
   </p>
  </div>

 
  <div class="section" id="mysqli-driver.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">MySQLi_Driver</strong>
     </span>
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="modifier">readonly</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.mysqli-driver.html#mysqli-driver.props.client-info">$<var class="varname">client_info</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">readonly</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.mysqli-driver.html#mysqli-driver.props.client-version">$<var class="varname">client_version</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">readonly</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.mysqli-driver.html#mysqli-driver.props.driver-version">$<var class="varname">driver_version</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">readonly</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.mysqli-driver.html#mysqli-driver.props.embedded">$<var class="varname">embedded</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">bool</span>
      <var class="varname"><a href="class.mysqli-driver.html#mysqli-driver.props.reconnect">$<var class="varname">reconnect</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">int</span>
      <var class="varname"><a href="class.mysqli-driver.html#mysqli-driver.props.report-mode">$<var class="varname">report_mode</var></a></var>;</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="mysqli-driver.embedded-server-end.html" class="methodname">mysqli_driver::embedded_server_end</a></span>(): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="mysqli-driver.embedded-server-start.html" class="methodname">mysqli_driver::embedded_server_start</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$start</code></span>, <span class="methodparam"><span class="type">array</span> <code class="parameter">$arguments</code></span>, <span class="methodparam"><span class="type">array</span> <code class="parameter">$groups</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="methodname"><strong>mysqli_report</strong></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span>): <span class="type">bool</span></div>

   }</div>

 
  </div>

  <div class="section" id="mysqli-driver.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="mysqli-driver.props.client-info"><var class="varname">client_info</var></dt>

     <dd>

      <p class="para">客户端API头版本（比如：(string)&quot;5.1.49&quot;）</p>
     </dd>

    
    
     <dt id="mysqli-driver.props.client-version"><var class="varname">client_version</var></dt>

     <dd>

      <p class="para">客户端版本（比如：(int)50149）</p>
     </dd>

    
    
     <dt id="mysqli-driver.props.driver-version"><var class="varname">driver_version</var></dt>

     <dd>

      <p class="para">Mysqli驱动版本（比如：(int)101009）</p>
     </dd>

    
    
     <dt id="mysqli-driver.props.embedded"><var class="varname">embedded</var></dt>

     <dd>

      <p class="para">是否开启了MySQLi嵌入式支持。</p>
     </dd>

    
    
     <dt id="mysqli-driver.props.reconnect"><var class="varname">reconnect</var></dt>

     <dd>

      <p class="para">允许或阻止重连接（查看INI指令中的mysqli.reconnect）</p>
     </dd>

    
    
     <dt id="mysqli-driver.props.report-mode"><var class="varname">report_mode</var></dt>

     <dd>

      <p class="para">
       设置为<strong><code>MYSQLI_REPORT_OFF</code></strong>,
       <strong><code>MYSQLI_REPORT_ALL</code></strong>或者
       <strong><code>MYSQLI_REPORT_STRICT</code></strong> （为错误抛出异常，译注：需要和MYSQLI_REPORT_ERROR联合使用）,
       <strong><code>MYSQLI_REPORT_ERROR</code></strong> (报告MYSQL错误)和
       <strong><code>MYSQLI_REPORT_INDEX</code></strong> (报告索引相关的错误)的任意组合。
       参阅<span class="function"><a href="function.mysqli-report.html" class="function">mysqli_report()</a></span>.
      </p>
     </dd>

    
   </dl>

  </div>

  
 </div>
 
 



















<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="mysqli-driver.embedded-server-end.html">mysqli_driver::embedded_server_end</a> — Stop embedded server</li><li><a href="mysqli-driver.embedded-server-start.html">mysqli_driver::embedded_server_start</a> — Initialize and start embedded server</li><li><a href="mysqli-driver.report-mode.html">mysqli_driver::$report_mode</a> — Sets mysqli error reporting mode</li></ul>
</div>
</div></div></body></html>